package io.renren.modules.demo.service;

import io.renren.common.service.CrudService;
import io.renren.modules.demo.dto.DhClubearningsInfoDTO;
import io.renren.modules.demo.entity.DhClubearningsInfoEntity;

import java.math.BigDecimal;

/**
 * 
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2023-03-25
 */
public interface DhClubearningsInfoService extends CrudService<DhClubearningsInfoEntity, DhClubearningsInfoDTO> {

    /**
     * 根据订单编号查询订单信息
     * @param orderId
     * @return
     */
    DhClubearningsInfoDTO getDataListByOrderId(Integer orderId);

    /**
     * 获取俱乐部总收益
     * @return
     */
    Integer getChildFiveData();

    /**
     * 获取近五年俱乐部收益数据
     * @return
     */
    BigDecimal getChildCenterData(String year);
}